﻿using AbpApplication.AppServices;
using AbpToDomain.CustomEntityInfo;
using Mesosphere.InPut;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Reconstruct_Zhbs.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class PdaMainController : ControllerBase
    {
        private readonly IPdaService _pdaService;

        public PdaMainController(IPdaService PdaService)
        {
            this._pdaService = PdaService;
        }

        [HttpPost]
        public async Task<ApiResponse> CreateOrder(PdaInPut inPut) => await _pdaService.CreateOrder(inPut);
        [HttpPost]
        public async Task<ApiResponse> CreateMaterial(PdaInPut2 inPut)=>await _pdaService.CreateMaterial(inPut);
        [HttpPost]
        public async Task<ApiResponse> Material_Pda_Last(PdaInPut3 inPut)=>await _pdaService.Material_Pda_Last(inPut);
        [HttpPost]
        public async Task<ApiResponse> AGV_Packing_List_Verification_AddListAsync(PdaInPut4 input)=> await _pdaService.AGV_Packing_List_Verification_AddListAsync(input);
        [HttpPost]
        public async Task<ApiResponse> GetMastList(string productorder)=>await _pdaService.GetMastList(productorder);
        [HttpPost]
        public async Task<ApiResponse> DeleteMaterial(Guid Id)=>await _pdaService.DeleteMaterial(Id);
        [HttpPost]
        public async Task<ApiResponse> Material_Pda_GetListAsync(PdaInPut3 inPut)=>await _pdaService.Material_Pda_GetListAsync(inPut);
        [HttpPost]
        public async Task<ApiResponse> InHouseCheck(PdaInPut10 pdaInPut)=>await _pdaService.InHouseCheck(pdaInPut);
        [HttpPost]
        public async Task<ApiResponse> Update_DocMentNo(PdaInPut9 input)=>await _pdaService.Update_DocMentNo(input);
        [HttpPost]
        public async Task<ApiResponse> GetDocNumNo(string PositionCode)=>await _pdaService.GetDocNumNo(PositionCode);
        [HttpPost]
        public async Task<ApiResponse> GetAgv_reelBonding(string BinID)=>await _pdaService.GetAgv_reelBonding(BinID);
        [HttpPost]
        public async Task<ApiResponse> CreateTailList(string PositionCode)=>await _pdaService.CreateTailList(PositionCode);
        [HttpPost]
        public async Task<ApiResponse> Unuasl_GetListAsync()=>await _pdaService.Unuasl_GetListAsync();
        [HttpPost]
        public async Task<ApiResponse> Unuasl_UpdateAsync(PdaInPut7 input)=>await _pdaService.Unuasl_UpdateAsync(input);
    }
}
